<?php

use think\facade\Route;
use app\adminapi\middleware\JwtAuth;
use app\adminapi\middleware\OperateLog;

// 广告醒光记录
Route::group('reward_log', function () {
    Route::get('index', 'ad.RewardLog/index')->name('reward_log:list')->setOption('real_name', '获取醒光列表');
    Route::get('read/:id', 'ad.RewardLog/read')->name('reward_log:detail')->setOption('real_name', '获取详情');
    Route::post('save', 'ad.RewardLog/save')->name('reward_log:add')->setOption('real_name', '添加广告');
    Route::put('update/:id', 'ad.RewardLog/update')->name('reward_log:update')->setOption('real_name', '编辑广告');
    Route::delete('delete/:id', 'ad.RewardLog/delete')->name('reward_log:delete')->setOption('real_name', '删除广告');
})->middleware([JwtAuth::class, OperateLog::class]);
